package com.evildog.workspace.system.application.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.evildog.workspace.common.object.PageQuery;
import com.evildog.workspace.common.result.PagedResult;
import com.evildog.workspace.dependencies.mybatis.object.QueryConditionDTO;
import com.evildog.workspace.system.application.bo.ApiPermissionCategoryPageBO;
import com.evildog.workspace.system.application.dto.ApiPermissionCategoryDTO;
import com.evildog.workspace.system.application.dto.ApiPermissionCategoryPageDTO;
import com.evildog.workspace.system.application.entity.ApiPermissionCategory;

import java.util.List;

/**
 * <p>
 * apiPermissionCategory Service
 * </p>
 *
 * @author evildog
 * @since 2020-08-01
 */
public interface ApiPermissionCategoryService extends IService<ApiPermissionCategory> {

    /**
    * 自定义分页
    */
    PagedResult<ApiPermissionCategoryPageBO> getPageList(PageQuery query, List<QueryConditionDTO> queryConditions, ApiPermissionCategoryPageDTO pageDTO);

    /**
    * 更新
    */
    boolean updateById(Long id, ApiPermissionCategoryDTO param);

    /**
    * 保存
    */
    boolean save(ApiPermissionCategoryDTO param);

    List<ApiPermissionCategoryPageBO> getValidList();

}
